package com.osfw.system.entity.manage;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户和角色关联 sys_user_role
 */
@Data
@Accessors(chain = true)
public class SysUserRole {
    /* 用户ID */
    @TableField(value = "user_id_")
    private Long userId;

    /* 角色ID */
    @TableField(value = "role_id_")
    private Long roleId;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("roleId", getRoleId())
                .toString();
    }
}
